'''
Purpose:    To trim off the first top rows and the bottom bottom rows
            from inputMatrix.

Usage:    outputMatrix = trimr(inputMatrix, top, bottom)
          where: k = lagged difference order  

Created on Aug 16, 2010
@author: Peter Harrington
peter.b.harrington@gmail.com
'''
from numpy import *
def trimr(inputMatrix, bottom, top):
    n = inputMatrix.shape[0]
    return inputMatrix[bottom:n-top,:]